<?php

namespace App\Modules\Free\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class UnlockRecord
 * @package App\Modules\Free\Models
 * @property int $user_id
 * @property int $buyer_id
 * @property int $free_record_id
 * @property string $unlock_good_type
 * @property int $unlock_good_id
 * @property string $title
 * @property int $order_id
 * @property int $money
 */
class UnlockRecord extends Model
{
    const STATUS_INIT = 'init';
    const STATUS_ISSUED = 'issued';
    const STATUS_FAIL = 'fail';

    public static $showStatus = [
        self::STATUS_INIT => '未发放',
        self::STATUS_FAIL => '取消',
        self::STATUS_ISSUED => '已发放',
    ];
    protected $fillable = [
        'user_id',
        'buyer_id',
        'free_record_id',
        'unlock_good_type',
        'unlock_good_id',
        'title',
        'order_id',
        'money',
        'status',
    ];
}
